package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName s_examination_information
 */
@TableName(value ="s_examination_information")
@Data
public class SExaminationInformation implements Serializable {
    /**
     * 考试信息主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 考试类型
     */
    @TableField(value = "name")
    private String name;

    /**
     * 开始时间
     */
    @TableField(value = "begin_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 发布人外键
     */
    @TableField(value = "u_id")
    private Integer uId;

    /**
     * 课程外键id
     */
    @TableField(value = "sub_id")
    private Integer subId;

    /**
     * 单选题数量/单个选项分数自定义
     */
    @TableField(value = "radio_count")
    private String radioCount;

    /**
     * 多选题数量/单个选项分数自定义
     */
    @TableField(value = "check_count")
    private String checkCount;

    /**
     * 判断题数量/单个选项分数自定义
     */
    @TableField(value = "judgment_count")
    private String judgmentCount;

    /**
     * 简答题数量/单个选项分数自定义
     */
    @TableField(value = "text_count")
    private String textCount;

    /**
     * 考试时长
     */
    @TableField(value = "exam_duration")
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date examDuration;

    /**
     * 状态（0:未开始  1:考试中  2：已结束）
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 班级外键
     * */
    @TableField(value = "class_id")
    private Integer classId;
    /**
     * 驳回原因
     */
    @TableField(value = "back_cause")
    private String backCause;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    @TableField(exist = false)
    private TUser tUser;

    @TableField(exist = false)
    private SSubject sSubject;

    @TableField(exist = false)
    private SClass sClass;


    @TableField(exist = false)
    private Integer radioCounts;
    @TableField(exist = false)
    private Integer checkCounts;
    @TableField(exist = false)
    private Integer judgmentCounts;
    @TableField(exist = false)
    private Integer textCounts;

    @TableField(exist = false)
    private Integer radioScope;
    @TableField(exist = false)
    private Integer checkScope;
    @TableField(exist = false)
    private Integer judgmentScope;
    @TableField(exist = false)
    private Integer textScope;

}